package com.water.bs.service;

import com.water.bs.mapper.UserManageMapper;
import com.water.bs.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class UserManageService {
    @Autowired
    private UserManageMapper userManageMapper;

    public int updateUser(Map<String,Object> map){
        return userManageMapper.updateUser(map);
    }

    public int deleteUser(String id){
        return userManageMapper.deleteUser(id);
    }

    public List<User> queryAllUser(){
        return userManageMapper.queryAllUser();
    }

    public int addUser(Map<String,Object> map){
        return userManageMapper.addUser(map);
    }


}
